package com.april.pattern.behavioral.state;

/**
 * @author April
 * @version V1.0.0
 * @date 2019/07/09 17:18
 * @description
 */
public abstract class CourseVideoState {
    protected CourseVideoContext courseVideoContext;

    public void setCourseVideoContext(CourseVideoContext courseVideoContext) {
        this.courseVideoContext = courseVideoContext;
    }

    /**
     * 播放
     */
    public abstract void play();

    /**
     * 加速
     */
    public abstract void speed();

    /**
     * 暂停
     */
    public abstract void pause();

    /**
     * 停止
     */
    public abstract void stop();
}
